//
//  HttpRequest.h
//
//  Created by Mikey on 15/6/8.
//  Copyright (c) 2015年 hhxh. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^SuccessBlock)(id result);
typedef void(^FailureBlock)(NSError*error);

@interface HttpRequest : NSObject
//单例
+(HttpRequest*)shareManager;

/// GET请求
+ (void)getWithPath:(NSString *)path params:(NSDictionary *)params success:(SuccessBlock)success failure:(FailureBlock)failure;
/// POST请求
+ (void)postWithPath:(NSString *)path params:(NSDictionary *)params success:(SuccessBlock)success failure:(FailureBlock)failure;

@end